package com.unionbigdata.examination.service.impl;

import com.unionbigdata.examination.entity.Student;
import com.unionbigdata.examination.mapper.StudentMapper;
import com.unionbigdata.examination.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    private StudentMapper studentMapper;

    @Autowired
    public void setStudentMapper(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public Student find(Long id) {
        return studentMapper.find(id);
    }
}
